import { Provider } from 'react-redux';
import { UseRequestProvider } from 'ahooks';
import store from '../store/index';
import Layout from '../layouts';

export default function IndexPage(props: any) {
    return (
        <UseRequestProvider value={{ manual: true }}>
            <Provider store={store}>
                <Layout {...props} />
            </Provider>
        </UseRequestProvider>
    );
}
